1 module directx.d2derr; 2 /*=========================================================================*\ 3 4 Copyright (c) Microsoft Corporation. All rights reserved. 5 6 \*=========================================================================*/ 7 8 version(Windows): 9 10 version(Direct2D_1_3) 11 version = Direct2D_1_2; 12 version(Direct2D_1_2) 13 version = Direct2D_1_1; 14 version(Direct2D_1_1): 15 version = Direct2D_1_0; 16 17 version(Direct2D_1_0): 18 19 import directx.com; 20 21 /*=========================================================================*\ 22 D2D Status Codes 23 \*=========================================================================*/ 24 25 enum FACILITY_D2D = 0x899; 26 27 HRESULT MAKE_D2DHR(alias sev, T)(T code) { 28 return MAKE_HRESULT(sev, FACILITY_D2D, code); 29 } 30 31 HRESULT MAKE_D2DHR_ERR(T)(T code) { 32 return MAKE_D2DHR(1, code); 33 } 34 35 //+---------------------------------------------------------------------------- 36 // 37 // D2D error codes 38 // 39 //------------------------------------------------------------------------------ 40 41 // 42 // Error codes shared with WINCODECS 43 // 44 45 // 46 // The pixel format is not supported. 47 // 48 //alias D2DERR_UNSUPPORTED_PIXEL_FORMAT = WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT; 49 50 // 51 // Error codes that were already returned in prior versions and were part of the 52 // MIL facility. 53 54 // 55 // Error codes mapped from WIN32 where there isn't already another HRESULT based 56 // define 57 // 58 59 // 60 // The supplied buffer was too small to accommodate the data. 61 // 62 //alias D2DERR_INSUFFICIENT_BUFFER = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) 63 64 // 65 // The file specified was not found. 66 // 67 //alias D2DERR_FILE_NOT_FOUND = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) 68 69 // 70 // D2D specific codes now live in winerror.h 71 // 72 73 // some stuff from winerror.h 74 75 enum D2DERR_RECREATE_TARGET = 0x8899000CL;